freeswitch-stable: fix gsmopen inbuf handling 350/head
authorSebastian Kemper <[email protected]>
Mon, 16 Jul 2018 21:24:36 +0000 (23:24 +0200)
committerSebastian Kemper <[email protected]>
Mon, 16 Jul 2018 21:24:38 +0000 (23:24 +0200)
inbuf is only const in libiconv-full when compiled against uclibc.

Signed-off-by: Sebastian Kemper <[email protected]>
net/freeswitch-stable/Makefile

index df85beae83522b8e91e54119d06f7b109d51c572..e4bc180d41f3b8a1fee0cadbdf9063e8e7d6ac70 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PRG_NAME:=freeswitch
 PKG_NAME:=$(PRG_NAME)-stable
 PKG_VERSION:=1.6.20
-PKG_RELEASE:=9
+PKG_RELEASE:=10
 PKG_MAINTAINER:=Sebastian Kemper <[email protected]>
 
 PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).tar.xz
@@ -241,9 +241,15 @@ include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 # iconv support
 include $(INCLUDE_DIR)/nls.mk
-
-# mod_gsmopen can't detect if iconv's inbuf is const
-ifeq ($(ICONV_FULL),1)
+#######################################################
+# mod_gsmopen can't detect if iconv's inbuf is const. #
+#                                                     #
+#                  musl    uclibc                     #
+# libiconv-stub    -       -                          #
+# libiconv-full    -       const                      #
+#                                                     #
+#######################################################
+ifeq ($(ICONV_FULL)$(CONFIG_USE_UCLIBC),1y)
 TARGET_CFLAGS+=-DFS_STABLE_ICONV_INBUF_CONST
 endif